#include "app_fault.h"
#include "fsm.h"
#include "hal_motor.h"
#include "hal_tty.h"



void fault_init() {
    
//    rcu_periph_clock_enable(FLOOR_BAND_BREAK_CORE | FLOOR_TERM_RELAY_CORE);

//    gpio_mode_set(FLOOR_TERM_RELAY_BASE, GPIO_MODE_INPUT, 
//                    GPIO_PUPD_PULLDOWN, FLOOR_TERM_RELAY_PIN);

//    gpio_mode_set(FLOOR_BAND_BREAK_BASE, GPIO_MODE_INPUT, 
//                    GPIO_PUPD_PULLDOWN, FLOOR_BAND_BREAK_PIN);

}

uint16_t fault_check(void) {

//    if(gpio_input_bit_get(FLOOR_BAND_BREAK_BASE,FLOOR_BAND_BREAK_PIN))
//        return APP_FAULT_BAND_BREAK;

//    if(gpio_input_bit_get(FLOOR_TERM_RELAY_BASE,FLOOR_TERM_RELAY_PIN)) {
//        return APP_FAULT_TERM_RELAY;
//    }

    return APP_NO_FAULT;
}

